package com.tongsys.server.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("role")
@ApiModel(value = "Role对象", description = "")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Integer id;

    @ApiModelProperty("角色编码")
    @TableField("role_code")
    private String roleCode;

    @ApiModelProperty("角色名称")
    @TableField("role_name")
    private String roleName;

    @ApiModelProperty("创建人")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_tm",fill = FieldFill.INSERT)
    private Date createTm;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_tm",fill = FieldFill.INSERT_UPDATE)
    private Date updateTm;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("是否删除 0 正常  1 删除")
    @TableField("is_delete")
    private Byte isDelete;
}
